<template>
  <div>
    <!-- 导航栏 -->
    <div class="nav">
      <router-link to="/discover/tuijian">推荐</router-link>
      <router-link to="/discover/toplist">排行榜</router-link>
      <router-link to="/discover/songlist">歌单</router-link>
    </div>

    <!-- 二级路由出口 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'MyDiscover'
}
</script>

<style scoped>
 .nav {
  height: 30px;
  background-color: #c20c0c;
  display: flex;
 }

 .nav a {
  flex: 1;
  text-align: center;
  line-height: 30px;
  text-decoration: none;
  color: #fff;
 }

 .nav a.router-link-active {
    color: #0f0;
 }
</style>
